import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: 'shoppingCart',
    name: 'ShoppingCart',
    component: () => import('@/views/ShoppingCart.vue')
  },
  {
    path:'confirmOrder',
    name:'ConfirmOrder',
    component:()=>import('@/views/ConfirmOrder.vue')
  }
]

const router = new VueRouter({
  //mode: 'history',    //使用history.pushState()函数实现无刷新的历史添加
  routes
})

export default router
